Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve DEX place-order CLI #1050

Merged
merged 4 commits into from
Dec 16, 2024
Merged

Conversation

dzmitryhil
Copy link
Contributor

@dzmitryhil dzmitryhil commented Dec 13, 2024

Description

  • Add detailed examples for the DEX place-order CLI.
  • Use default string representation for all DEX enums.

Reviewers checklist:

  • Try to write more meaningful comments with clear actions to be taken.
  • Nit-picking should be unblocking. Focus on core issues.

Authors checklist

  • Provide a concise and meaningful description
  • Review the code yourself first, before making the PR.
  • Annotate your PR in places that require explanation.
  • Think and try to split the PR to smaller PR if it is big.

This change is Reviewable

@dzmitryhil dzmitryhil requested a review from a team as a code owner December 13, 2024 06:36
@dzmitryhil dzmitryhil requested review from masihyeganeh, miladz68 and ysv and removed request for a team December 13, 2024 06:36
Copy link

codecov bot commented Dec 13, 2024

Codecov Report

Attention: Patch coverage is 54.54545% with 10 lines in your changes missing coverage. Please review.

Project coverage is 62.44%. Comparing base (caea1e5) to head (f74a071).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
x/dex/client/cli/tx.go 54.54% 8 Missing and 2 partials ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1050   +/-   ##
=======================================
  Coverage   62.44%   62.44%           
=======================================
  Files         160      160           
  Lines       18587    18587           
=======================================
+ Hits        11606    11607    +1     
+ Misses       5863     5861    -2     
- Partials     1118     1119    +1     
Flag Coverage Δ
coreum 57.09% <54.54%> (+<0.01%) ⬆️
coreum-integration-tests-modules 52.55% <27.27%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@masihyeganeh masihyeganeh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 2 of 2 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @dzmitryhil, @miladz68, and @ysv)


x/dex/client/cli/tx.go line 71 at r1 (raw file):

Example:
$ %s tx %s cored tx dex place-order ORDER_TYPE_LIMIT "my-order-id1" denom1 denom2 1000 SIDE_SELL --price 12e-1 --time-in-force=TIME_IN_FORCE_GTC --from [sender]

The %s tx %s will produce cored tx dex. You don't need to add it again

Copy link
Contributor Author

@dzmitryhil dzmitryhil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @masihyeganeh, @miladz68, and @ysv)


x/dex/client/cli/tx.go line 71 at r1 (raw file):

Previously, masihyeganeh (Masih Yeganeh) wrote…

The %s tx %s will produce cored tx dex. You don't need to add it again

Agree, updated.

masihyeganeh
masihyeganeh previously approved these changes Dec 13, 2024
Copy link
Contributor

@masihyeganeh masihyeganeh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 1 of 1 files at r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @miladz68 and @ysv)

Copy link
Contributor

@masihyeganeh masihyeganeh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 1 of 1 files at r3, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @miladz68 and @ysv)

Copy link
Contributor

@miladz68 miladz68 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 1 of 2 files at r1, 1 of 1 files at r3, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @ysv)

@dzmitryhil dzmitryhil merged commit 08fa763 into master Dec 16, 2024
10 of 11 checks passed
@dzmitryhil dzmitryhil deleted the dzmitryhil/improve-place-order-cli branch December 16, 2024 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants